layui.use('form', function(){
    var form = layui.form,
        ctx = $("#baseurl").val();
    //监听提交
    //login

    //login1
    form.on('submit(login-submit)', function(obj){

        $.ajax({
            type: "post",
            url: ctx+"/user/show_login",
            data: data.field,
            success: function (responseTxt) {
                layer.msg("提交成功");
            }
        });

    });
});